<?php
if( $_GET['all']!=0){
    echo "22";
    exit;
}
include "sql.php";
$cha=$con->query("update userorder set zhuangtai='1' where zhuangtai='0'");
if($cha){
    echo "成功";
}else{
    echo "失败";
}